package com.minimalist.common.config.fileHandler.entity;

import jakarta.validation.constraints.NotBlank;
import java.util.Objects;

public class LocalFileEntity{

    @NotBlank(message = "本地存储路径不能为空")
    private String storagePath;

    public String getStoragePath() {
        return storagePath;
    }

    public void setStoragePath(String storagePath) {
        this.storagePath = storagePath;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        LocalFileEntity that = (LocalFileEntity) o;
        return Objects.equals(storagePath, that.storagePath);
    }

    @Override
    public int hashCode() {
        return Objects.hash(storagePath);
    }

    @Override
    public String toString() {
        return "LocalFileEntity{" +
                "storagePath='" + storagePath + '\'' +
                '}';
    }
}
